﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="JobData.aspx.cs" Inherits="AzureMRUI.JobData" %>
<%@ Import Namespace="ClientWebRole" %>
<%@ Import Namespace="Microsoft.WindowsAzure.StorageClient" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1 {
            width: 139px;
            font-weight: bold;
        }

        .style2 { width: 105px; }

        .style3 { width: 91px; }

        .style4 {
            width: 139px;
            height: 21px;
        }

        .style5 {
            width: 105px;
            height: 21px;
            font-weight: bold;
        }

        .style6 {
            width: 91px;
            height: 21px;
            font-weight: bold;
        }

        .style7 { height: 21px; }

        .style8 {
            width: 97px;
            height: 21px;
            font-weight: bold;
        }

        .style9 { width: 97px; }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" 
               style="font-weight: 700; font-size: large" Text="JobID :" Width="66px"></asp:Label>
    <asp:Label ID="Label2" runat="server" 
               style="font-size: large; font-weight: 700"></asp:Label>
    <br />
    <br />
    <table style="width: 100%;">
        <tr>
            <td class="style4">
            </td>
            <td class="style5">
                Total Tasks</td>
            <td class="style6">
                Pending Tasks</td>
            <td class="style5">
                Executing Tasks</td>
            <td class="style8">
                Finished Tasks</td>
            <td class="style7">
            </td>
        </tr>
        <tr>
            <td class="style1">
                Map Tasks</td>
            <td class="style2">
                <asp:Label ID="MapTotalLabel" runat="server"></asp:Label>
            </td>
            <td class="style3">
                <asp:Label ID="MapPendingLabel" runat="server"></asp:Label>
            </td>
            <td class="style2">
                <asp:Label ID="MapExecutingLabel" runat="server"></asp:Label>
            </td>
            <td class="style9">
                <asp:Label ID="MapFinishedLabel" runat="server"></asp:Label>
            </td>
            <td>
                <asp:Label ID="MapPercentageComplete" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Reduce Tasks</td>
            <td class="style2">
                <asp:Label ID="ReduceTotalLabel" runat="server" Text="0"></asp:Label>
            </td>
            <td class="style3">
                <asp:Label ID="ReducePendingLabel" runat="server" Text="0"></asp:Label>
            </td>
            <td class="style2">
                <asp:Label ID="ReduceExecutingLabel" runat="server" Text="0"></asp:Label>
            </td>
            <td class="style9">
                <asp:Label ID="ReduceFinishedLabel" runat="server" Text="0"></asp:Label>
            </td>
            <td>
                <asp:Label ID="ReducePercentageComplete0" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <br />
    Start Time: 
    <asp:Label ID="StartTimeLabel" runat="server"></asp:Label>
    <br />
    <br />
    Output Container : 
    <asp:Label ID="OutContainerLabel" runat="server"></asp:Label>
    <br />
    <%
        string outCont = Request.QueryString["outcontainer"];
        DataSource datasource = new DataSource();
        List<IListBlobItem> list = datasource.getBlobs(outCont);
        foreach (IListBlobItem blob in list)
        {%>
        <a href='<%= blob.Uri %>'><%= blob.Uri %></a> <br />
    <%
        }
%>
    <br />
    <br />
</asp:Content>